<?php
require_once dirname(__FILE__) . '/../lib/sfCronManagerGeneratorConfiguration.class.php';
require_once dirname(__FILE__) . '/../lib/sfCronManagerGeneratorHelper.class.php';

/**
 * sfCronManager actions.
 *
 * @package    PowerChalk
 * @subpackage sfDoctrineCronManagerPlugin
 * @author     Bob Stremel <bob.stremel@gmail.com>
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class sfCronManagerActions extends autoSfCronManagerActions
{
  public function executeListRunNow(sfWebRequest $request)
  {
    $cron = new CronManagerDoctrine();
    $cron->runProcessOnce($request->getParameter('id'));
    $this->getUser()->setFlash('notice', 'The job has been started.');
    $this->redirect('@sf_cron_manager_job');
  }

}
